namespace ProxyServer.Pool
{
    public class BufferContext
    {
        private static BuffManager bufferManager;
        private static SocketAsyncEventPool pool;

        public static int BlockSize=500;

        public static void Init()
        {
            bufferManager = new BuffManager(BlockSize, 256);
            pool = new SocketAsyncEventPool(100, bufferManager);
        }

        public static BuffManager GetBuffManager()
        {
            return bufferManager;
        }

        public static SocketAsyncEventPool GetSocketAsyncEventPool()
        {
            return pool;
        }
    }
}
